package cn.ang.app.service.impl;

import cn.ang.app.mapper.DataDictionaryMapper;
import cn.ang.app.pojo.DataDictionary;
import cn.ang.app.service.DataDictionaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DataDictionaryServiceImpl implements DataDictionaryService {

    @Resource
    private DataDictionaryMapper dataDictionaryMapper;

    @Override
    public List<DataDictionary> appState(boolean flag) {
        List<DataDictionary> dataDictionaries = dataDictionaryMapper.selectDataDictionary(DataDictionaryMapper.APP_STATUS, flag);
        return dataDictionaries;
    }

    @Override
    public List<DataDictionary> appPlatform(boolean flag) {
        List<DataDictionary> dataDictionaries = dataDictionaryMapper.selectDataDictionary(DataDictionaryMapper.APP_FLATFORM, flag);
        return dataDictionaries;
    }
}
